package com.mmd.common.enums;

public enum KDniaoEnums {
	FEDEX_GJ("FEDEX_GJ","联邦快递国际"),
	UPS("UPS","UPS快递");

	private KDniaoEnums(String code, String name) {
		this.code = code;
		this.name = name;
	}
	
	public static KDniaoEnums getStatusEnum(String code){
		KDniaoEnums[] enumArr = KDniaoEnums.values();
		for (KDniaoEnums e : enumArr){
			if (code.equals(e.getCode())){
				return e;
			}
		}
		return null;
	}
	
	private String code;
	private String name;
	
	public String getCode() {
		return code;
	}
	public String getName() {
		return name;
	}
}
